var bnt = true;
$.ajax({
    type: "GET",
    url: "https://easy-mock.com/mock/5a1e41de3553d84371ccc0ef",
    dataType: "json",
    success: function (sub) {
        $("#cloth_get").html(template("cloth_pass", sub));
        $("#summary_get").html(template("summary_pass", sub));
        $("#clothes_get").html(template("clothes_pass", sub));
        $(".love").click(function () {
            if(bnt){
                $(this).attr('src', 'img/Cart01/red2.png');
                bnt = !bnt;
            }else{
                $(this).attr('src', 'img/Cart01/heart.png');
                bnt = !bnt;
            }

        });
    },
    error : function() {
        alert("error");
    }
});
